﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020004DD RID: 1245
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EvolveBuildShopSkillInfo : IMessage<EvolveBuildShopSkillInfo>, IMessage, IEquatable<EvolveBuildShopSkillInfo>, IDeepCloneable<EvolveBuildShopSkillInfo>, IBufferMessage
	{
		// Token: 0x17001022 RID: 4130
		// (get) Token: 0x06003852 RID: 14418 RVA: 0x0009B331 File Offset: 0x00099531
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EvolveBuildShopSkillInfo> Parser
		{
			get
			{
				return EvolveBuildShopSkillInfo._parser;
			}
		}

		// Token: 0x17001023 RID: 4131
		// (get) Token: 0x06003853 RID: 14419 RVA: 0x0009B338 File Offset: 0x00099538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EvolveBuildShopSkillInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001024 RID: 4132
		// (get) Token: 0x06003854 RID: 14420 RVA: 0x0009B34A File Offset: 0x0009954A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EvolveBuildShopSkillInfo.Descriptor;
			}
		}

		// Token: 0x06003855 RID: 14421 RVA: 0x0009B351 File Offset: 0x00099551
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopSkillInfo()
		{
		}

		// Token: 0x06003856 RID: 14422 RVA: 0x0009B359 File Offset: 0x00099559
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopSkillInfo(EvolveBuildShopSkillInfo other) : this()
		{
			this.level_ = other.level_;
			this.shopSkillId_ = other.shopSkillId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003857 RID: 14423 RVA: 0x0009B38A File Offset: 0x0009958A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EvolveBuildShopSkillInfo Clone()
		{
			return new EvolveBuildShopSkillInfo(this);
		}

		// Token: 0x17001025 RID: 4133
		// (get) Token: 0x06003858 RID: 14424 RVA: 0x0009B392 File Offset: 0x00099592
		// (set) Token: 0x06003859 RID: 14425 RVA: 0x0009B39A File Offset: 0x0009959A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17001026 RID: 4134
		// (get) Token: 0x0600385A RID: 14426 RVA: 0x0009B3A3 File Offset: 0x000995A3
		// (set) Token: 0x0600385B RID: 14427 RVA: 0x0009B3AB File Offset: 0x000995AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopSkillId
		{
			get
			{
				return this.shopSkillId_;
			}
			set
			{
				this.shopSkillId_ = value;
			}
		}

		// Token: 0x0600385C RID: 14428 RVA: 0x0009B3B4 File Offset: 0x000995B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EvolveBuildShopSkillInfo);
		}

		// Token: 0x0600385D RID: 14429 RVA: 0x0009B3C2 File Offset: 0x000995C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EvolveBuildShopSkillInfo other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.ShopSkillId == other.ShopSkillId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600385E RID: 14430 RVA: 0x0009B400 File Offset: 0x00099600
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.ShopSkillId != 0U)
			{
				num ^= this.ShopSkillId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600385F RID: 14431 RVA: 0x0009B458 File Offset: 0x00099658
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003860 RID: 14432 RVA: 0x0009B460 File Offset: 0x00099660
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003861 RID: 14433 RVA: 0x0009B46C File Offset: 0x0009966C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ShopSkillId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.ShopSkillId);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003862 RID: 14434 RVA: 0x0009B4C8 File Offset: 0x000996C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.ShopSkillId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopSkillId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003863 RID: 14435 RVA: 0x0009B520 File Offset: 0x00099720
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EvolveBuildShopSkillInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.ShopSkillId != 0U)
			{
				this.ShopSkillId = other.ShopSkillId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003864 RID: 14436 RVA: 0x0009B570 File Offset: 0x00099770
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003865 RID: 14437 RVA: 0x0009B57C File Offset: 0x0009977C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 88U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.ShopSkillId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001631 RID: 5681
		private static readonly MessageParser<EvolveBuildShopSkillInfo> _parser = new MessageParser<EvolveBuildShopSkillInfo>(() => new EvolveBuildShopSkillInfo());

		// Token: 0x04001632 RID: 5682
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001633 RID: 5683
		public const int LevelFieldNumber = 12;

		// Token: 0x04001634 RID: 5684
		private uint level_;

		// Token: 0x04001635 RID: 5685
		public const int ShopSkillIdFieldNumber = 11;

		// Token: 0x04001636 RID: 5686
		private uint shopSkillId_;
	}
}
